package com.king.juc.shared.safe;

import java.util.List;

/**
 * 子类重写方法, 有可能造成局部变量引用暴露出去
 * @author king
 * @date 2020/10/28 16:08
 */
public class ThreadSafeSub extends ThreadSafe {
    @Override
    public void method3(List<String> list) {
        new Thread(() -> {
            list.remove(0);
        }).start();
    }
}
